import {request} from "@/axios/index"
export function getMessageAll(){
	return request({
		url:"chat/message",
		method:"get"
	}).then((res)=>{
		return res
	})
}
export function sendMessage(data){
	console.log("data:",data);
	return request({
		url:"chat/send",
		method:"post",
		data
	}).then((res)=>{
		return res
	})
}
export function findUsers(data){
	return request({
		url:"chat/findUsers",
		method:"get",
		params:{
			username:data
		}
	}).then((res)=>{
		return res
	})
}